package com.example.client;

import com.example.business.BusinessStrategy;


public class ClientHandler {
    private NetworkChannel networkChannel;
    private BusinessStrategy strategy;

    // 构造方法，初始化网络通道和业务策略
    public ClientHandler(NetworkChannel networkChannel, BusinessStrategy strategy) {
        this.networkChannel = networkChannel;
        this.strategy = strategy;
    }

    // 执行业务策略
    public void executeStrategy() {
        strategy.execute();
    }
}
